﻿using HDJ.Framework.Core;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;

namespace HDJ.Framework.Core
{
    //[CustomEditor(typeof(ApplicationBoot))]
    //public class ApplicationBootEditor : UnityEditor.Editor
    //{

    //    public override void OnInspectorGUI()
    //    {
    //        ApplicationBoot boot = (ApplicationBoot)target;

    //        boot.assetsLoadType = (AssetsLoadType)EditorDrawGUIUtil.DrawBaseValue("Assets Load Type", boot.assetsLoadType);


    //        List<string> list = new List<string>();
    //        Type[] types = ReflectionUtils.GetChildTypes(typeof(GameSceneBase));
    //        for (int i = 0; i < types.Length; i++)
    //        {
    //            list.Add(types[i].Name);
    //        }

    //        boot.startSceneName = EditorDrawGUIUtil.DrawPopup("启动场景：", boot.startSceneName, list);

    //        if (GUI.changed)
    //        {
    //            EditorUtility.SetDirty(target);
    //            EditorSceneManager.MarkAllScenesDirty();
    //        }
    //    }
    //}
}
